<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>秒杀详情</title>
<%@ include file="../common/head.jsp" %>
</head>
<body>
	<div class="container">
			<div class="panel panel-info">
				<div class="panel-heading text-center">
					<h1>${ seckill.name }</h1>
				</div>
				<div class="panel-body">
					<h2 class="text-danger text-center">
						<!--显示时间图标-->
						<span class="glyphicon glyphicon-time text-center"></span>
						<!--展示倒计时-->
						<span class="glyphicon text-center" id="seckill-box"></span>
					</h2>
				</div>
			</div>
		</div>
		
		<div id="phoneModal" class="modal fade">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<h3 class="modal-title text-center">
							<span class="glyphicon glyphicon-phone">秒杀电话</span>
						</h3>
					</div>
					<div class="modal-body">
						<div class="row">
							<div class="col-xs-8 col-xs-offset-2">
								<input type="text" name="phone" id="phoneKey" placeholder="填写手机号" class="form-control" />
							</div>
						</div>
					</div>
					<div class="modal-footer">
						<span id="phoneMessage" class="glyphicon"></span>
						<button type="button" id="phoneBtn" class="btn btn-success">
							<span class="glyphicon glyphicon-phone"></span>
							Submit
						</button>
					</div>
				</div>
			</div>
		</div>
	</body>
<%@ include file="../common/tail.jsp" %>
<script src="http://cdn.bootcss.com/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
<script src="http://cdn.bootcss.com/jquery.countdown/2.1.0/jquery.countdown.min.js"></script>
<script src="../../../js/seckill.js" type="text/javascript"></script>
<script type="text/javascript">
	$(function(){
		seckill.detail.init({
			seckillId : ${seckill.seckillId},
			startTime : ${seckill.startTime.time},
			endTime : ${seckill.endTime.time}
		});
	});
</script>
</html>